package com.hdwe.icpms.admin.domain.bo;

import com.hdwe.icpms.admin.domain.ProtocolByte;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 设备协议字节业务对象 cpc_protocol_byte
 *
 * @author Lus
 * @date 2024-12-30
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = ProtocolByte.class, reverseConvertGenerate = false)
public class ProtocolByteBo extends BaseEntity {

    /**
     * 主键
     */
    private Long id;

    /**
     * 协议ID
     */
    @NotNull(message = "协议ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long protocolId;

    /**
     * 协议元数据ID
     */
    @NotNull(message = "协议元数据ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long protocolMetadataId;

    /**
     * 元数据类别
     */
    @NotBlank(message = "元数据类别不能为空", groups = { AddGroup.class, EditGroup.class })
    private String protocolMetadataCategory;

    /**
     * 接收报文字节开始编号
     */
    private Integer receiveByteStartIndex;

    /**
     * 接收报文字节结束编号
     */
    private Integer receiveByteEndIndex;

    /**
     * 响应报文字节开始编号
     */
    private Integer replyByteStartIndex;

    /**
     * 响应报文字节结束编号
     */
    private Integer replyByteEndIndex;

    /**
     * 状态
     */
    @NotBlank(message = "状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private String status;

    /**
     * 备注
     */
    private String remark;


}
